//
//  TrackDotAnnotationView.m
//  location
//
//  Created by Dongxiang Xu on 2024/9/4.
//

#import "TrackDotAnnotationView.h"

@implementation TrackDotAnnotationView

- (instancetype)initWithAnnotation:(nullable id <MKAnnotation>)annotation reuseIdentifier:(nullable NSString *)reuseIdentifier
{
    self = [super initWithAnnotation:annotation reuseIdentifier:reuseIdentifier];
    
    if (self)
    {
        self.bounds = CGRectMake(0.f, 0.f, 16, 16);
                        
        _head = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 16, 16)];
        _head.backgroundColor = GraryTooHeavyColor;
        _head.layer.masksToBounds = YES;
        [_head.layer setCornerRadius:8];
        [self addSubview:_head];

    }
    
    return self;
}
@end
